# content of conftest.py

import pytest
import tempfile
import os

@pytest.fixture()
def cleandir():
    newpath = tempfile.mkdtemp()
    os.chdir(newpath)
    # print("newpath:",newpath)
    # assert 0

@pytest.fixture()
def cleandir2():
    newpath = tempfile.mkdtemp()
    os.chdir(newpath)

# newpath: C:\Users\zyp\AppData\Local\Temp\tmpau78lhsy
# Temp\tmpau78lhsy  Temp目录下的tmpau78lhsy是随机生成的


